package com.ayu.shortlink.admin.service.handler.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import lombok.Getter;

/**
 * 进行Excel行数读取监听器
 */
public class RowCountListener extends AnalysisEventListener<Object> {
    @Getter
    private int count = 0;
    @Override
    public void invoke(Object o, AnalysisContext analysisContext) {
        count++;
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
